package com.baidu.threadSafe;

public class APP {
    public static void main(String[] args) {
        //1.创建共用账户对象
        Account account = new Account("icbc110", 10000);

        //2.分别创建线程
        new DrawMoneyThread(account, "小明").start();
        new DrawMoneyThread(account, "小红").start();
    }
}

